// cl_umsg.lua
// Houses all the hooks that recieve the usermessages from the server

function ChangeRound(data)
	gb_CurrentRound = data:ReadLong()
end
usermessage.Hook("changeround", ChangeRound)

function TimerCountdown(data)
	gb_RoundTimer = data:ReadLong()
end
usermessage.Hook("timercountdown", TimerCountdown)

function UpdateCoreHealth(data)
	gb_CoreHealth = data:ReadLong()
end
usermessage.Hook("updatecorehealth", UpdateCoreHealth)

function UpdateTeamCores(data)
	gb_NumRedCores = data:ReadLong()
	gb_NumBlueCores = data:ReadLong()
end
usermessage.Hook("updateteamcores", UpdateTeamCores)